package com.itany.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Set;

/**
 * Author:zhangjiayao@itany.com
 * Date:19-4-3 上午8:47
 * description:
 * version:1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Menu implements Comparable<Menu>{

    private Integer menuid;

    private String icon;

    private String menuname;

    private String url;

    private Set<Menu> menus;

    @Override
    public int compareTo(Menu o) {
        return this.menuid-o.menuid;
    }
}
